package com.github.maojx0630.onebot.dto.send.msg;

import com.github.maojx0630.onebot.dto.send.Send;

public class SendText implements Send {

  private final String text;

  private SendText(String text) {
    this.text = text;
  }

  public static SendText of(String text) {
    return new SendText(text);
  }

  @Override
  public String getKey() {
    return "text";
  }

  @Override
  public String getType() {
    return "text";
  }

  @Override
  public String getValue() {
    return text;
  }
}
